package com.xtt.dynamic.mapper;

import com.xtt.dynamic.entity.Friend;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface FriendMapper {

    @Select("select * from Friend")
    List<Friend> list();

    @Insert("insert into friend(`name`) values(#{name})")
    void save(Friend friend);
}
